package com.cwm.test.strategy.duck;

import com.cwm.test.strategy.duck.impl.MallarDuck;
import com.cwm.test.strategy.duck.impl.RedHeadDuck;
import com.cwm.test.strategy.duck.impl.RubberDuck;

public class Client
{
    public static void main(String[] args) {
        Duck duck = new MallarDuck();
        duck.swim();
        duck.display();
        duck.performFly();
        duck.performQuack();
        duck = new RubberDuck();
        duck.swim();
        duck.display();
        duck.performFly();
        duck.performQuack();
        duck = new RedHeadDuck();
        duck.swim();
        duck.display();
        duck.performFly();
        duck.performQuack();
    }
}
